<template>
  <div>
    <el-dialog
      title="上传图片"
      :visible.sync="visible"
      width="1000px"
      :before-close="handleClose"
      :close-on-click-modal="false"
    >
      <upload-index v-if="visible" :is-more="isMore" @getImage="getImage"/>
      <!--<span slot="footer" class="dialog-footer" />-->
    </el-dialog>
  </div>
</template>

<script>

import UploadIndex from '@/components/uploadPicture/index.vue'
export default {
  name: 'UploadFroms',
  components: { UploadIndex },
  data() {
    return {
      visible: false,
      callback: function() {}
    }
  },
  watch: {
    // show() {
    //   this.visible = this.show
    // }
  },
  methods: {
    handleClose() {
      this.visible = false
    },
    getImage(img) {
      this.callback(img)
      this.visible = false
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
